.container {
  height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.navBar {
  background: white;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
  font-weight: 600;
}

.weekSelector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.weekText {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-width: 70px;
  text-align: center;
}

.weekButton {
  color: #333 !important;
  background: none !important;
  border: none !important;
  padding: 4px 8px !important;
  font-size: 16px;
}

.content {
  flex: 1;
  background: white;
  overflow-y: auto;
}

/* 课程表容器 */
.scheduleContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 日期栏样式 */
.dateHeader {
  display: flex;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
  margin-left: 80px;
  /* 为时间列预留空间 */
}

.dateCell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid #e8e8e8;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dateCell:last-child {
  border-right: none;
}

.dateCell.today {
  background: #ff9500;
  color: white;
}

.dayLabel {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.dateCell.today .dayLabel {
  color: white;
}

.dateLabel {
  font-size: 14px;
  font-weight: 500;
}

/* 课程表格样式 */
.scheduleTable {
  flex: 1;
  overflow-y: auto;
}

.tableRow {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  min-height: 60px;
}

.tableRow:last-child {
  border-bottom: none;
}

/* 时间列样式 */
.timeColumn {
  width: 80px;
  padding: 8px;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  flex-shrink: 0;
}

.slotNumber {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  margin-bottom: 4px;
}

.slotTime {
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.2;
}

/* 课程列样式 */
.courseColumn {
  flex: 1;
  border-right: 1px solid #e8e8e8;
  position: relative;
  min-height: 60px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.courseColumn:last-child {
  border-right: none;
}

.courseColumn.emptyCell:hover {
  background-color: rgba(74, 144, 226, 0.05);
}

.addHint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.courseColumn.emptyCell:hover .addHint {
  opacity: 0.5;
}

.addIcon {
  font-size: 18px;
  color: #4A90E2;
  font-weight: bold;
}

/* 课程块样式 */
.courseBlock {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  border-radius: 8px;
  padding: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.courseBlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.courseBlock:active {
  transform: translateY(0);
}

.courseText {
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-weight: 600;
  margin-bottom: 2px;
}

.courseTeacher {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  opacity: 0.9;
}

/* 课程详情弹窗 */
.courseDetail {
  padding: 20px;
}

.courseDetail h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.detailItem {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detailItem:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #333;
  min-width: 60px;
  margin-right: 12px;
}

/* 编辑表单样式 */
.editForm {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.editForm h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* 颜色选择器样式 */
.colorPicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.colorOption {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.colorOption:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.colorOption.colorSelected {
  border-color: #333;
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.colorOption.colorSelected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 表单行布局 */
.formRow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.halfWidth {
  flex: 1;
}

/* 课程模板样式 */
.templateSection {
  margin-bottom: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.templateLabel {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.templateOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.templateButton {
  border-radius: 16px !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  min-height: 28px !important;
  transition: all 0.2s ease !important;
}

.templateButton:hover {
  background-color: #e3f2fd !important;
  border-color: #1976d2 !important;
  color: #1976d2 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dateHeader {
    margin-left: 60px;
  }

  .timeColumn {
    width: 60px;
    padding: 6px 4px;
  }

  .slotNumber {
    font-size: 14px;
  }

  .slotTime {
    font-size: 10px;
  }

  .courseText {
    font-size: 11px;
  }

  .weekText {
    font-size: 14px;
    min-width: 60px;
  }
}

/* 自定义滚动条 */
.content::-webkit-scrollbar,
.scheduleTable::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track,
.scheduleTable::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb,
.scheduleTable::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover,
.scheduleTable::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}